package com.jihu.design.structural.decorator;

/**
 * @author jihu
 * @date 2021/9/22
 */
public class MeiYanDecorator implements TikTokDecorator {


    private ManTikTok manTikTok;

    public MeiYanDecorator(ManTikTok manTikTok){
        this.manTikTok = manTikTok;
    }

    @Override
    public void enable() {
        System.out.println("花花花");
    }

    @Override
    public void tiktok() {
        enable();
        manTikTok.tiktok();
    }
}
